package com.java.grammer.oop;

/**
 * @author luzhikun
 * @date 2020/11/29- 10:57
 */
public class PhoneTest_2_1 {
    public static void main(String[] args) {
        Phone_2 ph = new Phone_2();
        ph.setBrand("华为");
        ph.setPrice(5000);
        System.out.println("这个手机牌子是" + ph.getBrand() + " " + "价格为：" + ph.getPrice());
        Phone_2 p2 = new Phone_2("三星", 2000);
        System.out.println("这个手机牌子是：" + p2.getBrand() + " " + "价格为：" + p2.getPrice());

    }
}
